#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages
import os

# 确保resources目录存在
resources_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "resources")
os.makedirs(resources_dir, exist_ok=True)

# 找到所有资源文件
def find_resource_files():
    resource_files = []
    for root, dirs, files in os.walk("resources"):
        for file in files:
            resource_files.append(os.path.join(root, file))
    return resource_files

setup(
    name="claude-automation",
    version="0.1.0",
    description="A desktop application for automating interactions with Claude AI",
    author="Claude Automation Team",
    author_email="example@example.com",
    url="https://github.com/yourusername/claude",
    packages=find_packages(),
    include_package_data=True,
    package_data={
        "": ["resources/*.*"],
    },
    data_files=[
        ("resources", find_resource_files()),
    ],
    install_requires=[
        "PyQt6>=6.5.0",
        "selenium>=4.10.0",
        "markdown>=3.4.0",
        "webdriver-manager>=3.8.0",
        "requests>=2.28.0",
    ],
    entry_points={
        "console_scripts": [
            "claude-automation=src.main:main",
        ],
    },
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
        "Topic :: Utilities",
    ],
    python_requires=">=3.9",
) 